package com.jhws.business.comm.service;

import java.util.List;
import java.util.Map;

import com.jhws.business.comm.bo.TblCommDimBo;
import com.jhws.business.device.bo.UserDevice;
import com.jhws.common.Page;

public interface ITblCommDimService
{
	public abstract TblCommDimBo findTblCommDimById(String commId);

	public abstract TblCommDimBo findTblCommDimByCommCode(String commCode) throws Exception;

	public abstract Page findTblCommDim(int start, int num, String whereClause)
			throws Exception;

	public abstract List<TblCommDimBo> findTblCommDimByWhere(String whereClause) throws Exception;

	public abstract TblCommDimBo save(TblCommDimBo bo) throws Exception;
	
	public abstract TblCommDimBo merge(TblCommDimBo bo) throws Exception;

	public abstract void removeGrgDim(String commId);
	
	public abstract Map<String, Object> findCommListPage(Map param);

	public abstract List<TblCommDimBo> findCommList(Map param) throws Exception;

	TblCommDimBo getCommDimBoByCommName(String commName, String city) throws Exception;

	public abstract List<UserDevice> genDeviceListForRole(String role, String bindingRoom) throws Exception;
}
